import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../components/home/Home'
import Show from '../components/middle/show'
import NodeManagement from '../components/middle/nodeManagement'
import FileManage from '../components/middle/fileManage'
import Distributed from '../components/middle/Distributed'

Vue.use(VueRouter);

const routers = [
    {
        path:'/',
        name:"Home",
        component:Home,

    },
    {
        path:'/show',
        name: 'Show',
        component: Show
    },
    {
        path:'/NodeManagement',
        name: 'NodeManagement',
        component: NodeManagement
    },
    {
        path:'/FileManage',
        name: 'FileManage',
        component: FileManage
    },
    {
        path:'/Distributed',
        name: 'Distributed',
        component: Distributed
    },



];

const router = new VueRouter({
    routes:routers
});


export default router